package com.kele.function;

import java.util.function.Consumer;
import java.util.function.DoubleToIntFunction;

/**
 * @author kele
 * @date 2021/10/12 15:20
 * @description Consumer消费性接口
 * 有输入参数，没有返回值
 */
public class ConsumerTest {
    public static void main(String[] args) {
        Consumer consumer= System.out::println;
        consumer.accept(123);

        Consumer consumer1= System.out::println;
        consumer1.accept(333);
    }
}
